<?php  
require_once '../../../include.php';
checkLogin();
$sql="select * from config where id=1";
$row=fetchOne($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
	<title>网站基本配置</title>
	<link rel="stylesheet" href="../../vender/sui/sui.min.css">
	<link rel="stylesheet" href="../../css/style.css">
	<link rel="stylesheet" href="../../css/admin.css">
</head>
<body>
<div class="content-title">
	<h4>网站基本配置</h4>
</div>
<div class="content-wrapper">
	<form id="sysConfigSet" class="sui-form form-horizontal sui-validate" novalidate="novalidate" method="post" enctype="multipart/form-data" action="../../doAdminAction.php?act=config">
	    <div class="control-group">
	      <label class="control-label">网站名称：</label>
	      <div class="controls">
	        <input type="text" id="siteName" name="siteName" placeholder="网站名称"  class="input-fat" data-rules="required" value="<?php echo $row['siteName'];?>">
	      </div>
	    </div>
		<div class="control-group">
			<label class="control-label">网站web地址：</label>
			<div class="controls">
				<input type="text" id="siteWebUrl" name="siteWebUrl" placeholder="网站web地址" class="input-fat" data-rules="required|url" value="<?php echo $row['siteWebUrl'];?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">网站wap地址：</label>
			<div class="controls">
				<input type="text" id="SsiteWapUrl" name="siteWapUrl" placeholder="网站wap地址" class="input-fat" data-rules="required|url" value="<?php echo $row['siteWapUrl'];?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备案号：</label>
			<div class="controls">
				<input type="text" id="recordNumber" name="recordNumber" placeholder="备案号" class="input-fat" data-rules="required" value="<?php echo $row['recordNumber'];?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">版权说明：</label>
			<div class="controls">
				<input type="text" id="copyright" name="copyright" placeholder="版权说明" class="input-fat" data-rules="required" value="<?php echo $row['copyright'];?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">网站logo：</label>
			<div class="controls">
				<div class="uploadbox">
					添加
					<input type="file" name="logo" class="fileImg" accept="image/*"/>
					<img class="uploadImg" src="../../uploadImg/config/<?php echo $row['logo'];?>">
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">微信二维码：</label>
			<div class="controls">
				<div class="uploadbox">
					添加
					<input type="file" name="weixin" class="fileImg" accept="image/*">
					<img class="uploadImg" src="../../uploadImg/config/<?php echo $row['weixin'];?>">
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">APP二维码：</label>
			<div class="controls">
				<div class="uploadbox">
					添加
					<input type="file" name="app" class="fileImg" accept="image/*">
					<img class="uploadImg" src="../../uploadImg/config/<?php echo $row['app'];?>">
				</div>
			</div>
		</div>
	    <div class="control-group">
	      <label class="control-label"></label>
	      <div class="controls">
	        <button type="submit" class="sui-btn btn-primary">保存</button>
	      </div>
	    </div>
	</form> 
</div>
</body>
</html>
<script src="../../vender/jquery/jquery-1.11.1.js"></script>
<script src="../../vender/jquery/jquery.alerts.js"></script>
<script src="../../vender/sui/sui.js"></script>
<script src="../../scripts/admin.js"></script>
